package com.cowin.sys.service.impl;

import com.cowin.sys.dao.TmBasWorkscheduleMapper;
import com.cowin.sys.model.TmBasWorkschedule;
import com.cowin.sys.model.dto.WorkAndRest;
import com.cowin.sys.service.TmBasWorkscheduleService;
import com.cowin.base.AbstractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by  on 2019/12/26.
 * @author CodeGenerator
 */
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class TmBasWorkscheduleServiceImpl extends AbstractServiceImpl<TmBasWorkschedule> implements TmBasWorkscheduleService {

    @Resource
    private TmBasWorkscheduleMapper tmBasWorkscheduleMapper;

    @Override
    public List<WorkAndRest> getWorkshopSchedule(Long workshopId) {
        return tmBasWorkscheduleMapper.getWorkshopSchedule(workshopId);
    }
}
